package com.ebupt.migu.music.schedule.mapper;

import com.ebupt.migu.music.schedule.entity.ArkUserGroupInfo;
import com.ebupt.migu.music.userGroup.entity.UserGroupInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserGroupInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int deleteByState(String state);

    int insert(ArkUserGroupInfo record);

    int insertSelective(ArkUserGroupInfo record);

    ArkUserGroupInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ArkUserGroupInfo record);

    int updateByPrimaryKey(ArkUserGroupInfo record);

    List<String> getAllGroupId();

    List<ArkUserGroupInfo> selectByUserName(String userId);

    int updateAllState(@Param("state") String state, @Param("userName") String userName);

    List<UserGroupInfo> selectByMoreThan7Group();

    List<UserGroupInfo> selectByCombinedGroup(@Param("groupName")String groupName);

}